package com.genius.file.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "上传文件BO", description = "从客户端，由用户传入的数据封装在此entity中")
public class UploadFileBO {

    @ApiModelProperty("文件名称")
    @NotBlank(message = "文件名称不能为空")
    private String fileName;

    @ApiModelProperty("文件大小")
    @NotNull(message = "文件大小不能为空")
    private Long fileSize;

    @ApiModelProperty("文件类型")
    private String fileType;
}